﻿using Microsoft.AspNetCore.Builder;

namespace Swimj.AspNetCore.Infrastructure.Auth
{
    public static class ApplicationBuilderExtension
    {
        public static IApplicationBuilder UseCurrentUser(this IApplicationBuilder app) =>
        app.UseMiddleware<SecurityMiddleware>();
    }
}
